set

public abstract C set<C extends P>(Class<C> callbackClass, C callback)

Sets a particular service callback.

Replaces the existing callback associated with the callbackClass, if any.

Return

the previously configured callback

Parameters

callbackClass

the callback class

callback

the callback object

<C>

the callback type